package com.fuze.questionnaire.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author sepc_
 * @date 10/15/2021 12:00
 * 问卷问题关联表
 */
@ApiModel(value = "questionnaire_problem_related_tab")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "questionnaire_problem_related_tab")
public class QuestionnaireProblemRelated implements Serializable {
    private static final long serialVersionUID = -616246525340648052L;
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "自增id")
    private Integer id;

    /**
     * 问卷id
     */
    @TableField(value = "questionnaire_id")
    @ApiModelProperty(value = "问卷id")
    private Integer questionnaireId;

    /**
     * 问题id
     */
    @TableField(value = "problem_id")
    @ApiModelProperty(value = "问题id")
    private Integer problemId;


    public static final String COL_ID = "id";

    public static final String COL_QUESTIONNAIRE_ID = "questionnaire_id";

    public static final String COL_PROBLEM_ID = "problem_id";
}